package com.android.music.prolyric;

import java.util.List;
import java.util.Map;

import android.content.Context;
import android.view.View;
import android.view.ViewGroup;
import android.webkit.WebView.FindListener;
import android.widget.SimpleAdapter;
import android.widget.TextView;

public class SimpleAdapterSearch extends SimpleAdapter
{
	int colorId, colorSong, colorSinger;
	public SimpleAdapterSearch(Context context,List<? extends Map<String, ?>> data, int resource, String[] from,int[] to) 
	{
		super(context, data, resource, from, to);
		
	}
	
	public SimpleAdapterSearch(Context context,List<? extends Map<String, ?>> data, int resource, String[] from,int[] to,int colorId,int colorSong,int colorSinger) 
	{
		
		super(context, data, resource, from, to);
		this.colorId  = colorId;
		this.colorSinger = colorSinger;
		this.colorSong = colorSong;
		
	}

	@Override
	public View getView(int position, View convertView, ViewGroup parent) 
	{
		View v = super.getView(position, convertView, parent);
		TextView tvId = (TextView)v.findViewById(R.id.tvSearchID);
		TextView tvSong = (TextView)v.findViewById(R.id.tvSearchSong);
		TextView tvSinger = (TextView)v.findViewById(R.id.tvSearchSinger);
		tvId.setTextColor(colorId);
		tvSinger.setTextColor(colorSinger);
		tvSong.setTextColor(colorSong);
		return v;
	}
	
	
	
	
	

}
